package com.errol.generic.file.core.pojo;

import java.io.File;

/**
 * @author zhang xiao bin
 * @version v1.0
 * @date 2021/06/28
 * @since v
 **/
public class TempFile {

    /**
     * 服务端相对路径
     */
    private String filePath;
    /**
     * 文件原名称，含扩展名
     */
    private String originalName;
    /**
     * 文件类型
     */
    private FileExtension fileExtension;
    /**
     * 文件大小 bytes
     */
    private Long fileSize;
    /**
     * 服务端临时文件
     */
    private File tempFile;

    public TempFile() {
    }

    public TempFile(String filePath, String originalName, FileExtension fileExtension, Long fileSize, File tempFile) {
        this.filePath = filePath;
        this.originalName = originalName;
        this.fileExtension = fileExtension;
        this.fileSize = fileSize;
        this.tempFile = tempFile;
    }

    public String getFilePath() {
        return filePath;
    }

    public String getOriginalName() {
        return originalName;
    }

    public FileExtension getFileExtension() {
        return fileExtension;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public File getTempFile() {
        return tempFile;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public void setFileExtension(FileExtension fileExtension) {
        this.fileExtension = fileExtension;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public void setTempFile(File tempFile) {
        this.tempFile = tempFile;
    }
}
